<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>LarryCMS后台管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<!-- load css -->
	<link rel="stylesheet" type="text/css" href="/public/common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="/public/common/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="/public/admin/css/adminstyle.css" media="all">
</head>

<body>
	<div class="layui-layout layui-layout-admin" id="layui_layout">
		<!-- 顶部区域 -->
		<div class="layui-header header header-demo">
			<div class="layui-main">
				<!-- logo区域 -->
				<div class="admin-logo-box">
					<a class="logo" href="javascript:;" title="logo">
						<img src="/public/common/images/logo1.png" alt="">
					</a>
					<div class="larry-side-menu">
						<i class="fa fa-bars" aria-hidden="true"></i>
					</div>
				</div>
				<!-- 右侧导航 -->
				<ul class="layui-nav larry-header-item">
					<li class="layui-nav-item">
						<span><?php echo session('username'); ?></span>
						<span class="">欢迎进入南京晨荣环保设备公司管理系统</span>
					</li>
					<li class="layui-nav-item">
						<a href="<?php echo U('login/login'); ?>"><i class="iconfont icon-exit"></i>退出</a>
					</li>

				</ul>
			</div>
		</div>
		<!-- 左侧侧边导航开始 -->
		<div class="layui-side layui-side-bg layui-larry-side" id="larry-side">
			<div class="layui-side-scroll" id="larry-nav-side" lay-filter="side">

				<!-- 左侧菜单 -->
				<ul class="layui-nav layui-nav-tree">
					<li class="layui-nav-item">
						<a href="<?php echo U('project/lst'); ?>">
							<i class="iconfont icon-diannao1"></i>
							<span>项目管理</span>
						</a>
					</li>
					<!-- 用户管理 -->
					<li class="layui-nav-item">
						<a href="<?php echo U('project/add'); ?>"  data-url="personInfo.html ">
							<i class="layui-icon">&#xe61f;</i>
							<span>新建项目</span>
						</a>
					</li>
					<!-- 内容管理 -->
					<li class="layui-nav-item">
						<a href="<?php echo U('net/lst'); ?>" data-url="gateway.html ">
							<i class="iconfont icon-wenzhang1" data-icon='icon-wenzhang1'></i>
							<span>网关管理</span>
						</a>
					</li>

					<!-- 会员管理 -->
					<li class="layui-nav-item">
						<a href="<?php echo U('admin/lst'); ?>" data-url="userControl.html">
							<i class="layui-icon">&#xe613;</i>
							<span>用户管理</span>
						</a>
					</li>
					<!-- 系统设置 -->
					<li class="layui-nav-item">
						<a href="<?php echo U('admin/authority'); ?>">
							<i class="iconfont icon-xitong" data-icon='icon-xitong'></i>
							<span>权限管理</span>
						</a>
					</li>

					<!-- 系统设置 -->
					<li class="layui-nav-item">
						<a href="<?php echo U('project/map'); ?>">
							<i class="layui-icon">&#xe609;</i>
							<span>项目总地图</span>
						</a>
					</li>
				</ul>
			</div>
		</div>

		<!-- 左侧侧边导航结束 -->
		<!-- 右侧主体内容 -->
		<div class="layui-body" id="larry-body" style="bottom: 0;border-left: solid 2px #1AA094;">
			<div class="layui-tab layui-tab-card larry-tab-box" id="larry-tab" lay-filter="demo" lay-allowclose="true">
				<!-- <ul class="layui-tab-title">
					<li class="layui-this" id="admin-home"><i class="iconfont icon-diannao1"></i><em>项目管理</em></li>
				</ul> -->
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show" style="height:100%;">
						<!-- <iframe class="larry-iframe" data-id='0' src="main.html"></iframe> -->
						
<link rel="stylesheet" type="text/css" href="/public/common/layui/css/layui.css" >
<link rel="stylesheet" type="text/css" href="/public/common/bootstrap/css/bootstrap.css" >
<link rel="stylesheet" type="text/css" href="/public/common/global.css">

<style>
.content li{
  display: none;
}
.on{
  display: block !important;
}
.list-group-item{
  border: none;
}

</style>
<section id="autuor">
  <div class="row">
    <div class="col-md-4">
      <ul class="tab list-group">
        <li class="tab_on list-group-item">
          <button type="button" class="btn btn-info btn-lg btn-block">高级权限</button>
        </li>
        <li class="list-group-item">
          <button type="button" class="btn btn-info btn-lg btn-block">中级权限</button>

        </li>
        <li class="list-group-item">
          <button type="button" class="btn btn-info btn-lg btn-block">低级权限</button>
        </li>
      </ul>
    </div>
    <div class="col-md-8" >
    <ul class="content ">
      <li class="on">
        <form class="layui-form" action="/index.php/Admin/admin/authority.html" method="post">
          <table class="layui-table" lay-skin="line">
            <colgroup>
            </colgroup>
            <thead>
              <tr>
                <th>用户名</th>
                <th>修改权限</th>
              </tr>
            </thead>
            <tbody>
              <?php foreach($data1 as $k=>$v): ?>
              <tr><?php if($v['id'] != 1): ?>
                <td><?php echo $v['username']; ?></td>
                <td>
                  <select name="<?php echo ($v['id']); ?>" lay-verify="">
                      <option value="">请选择一个权限</option>
                      <option selected value="1">高级权限</option>
                      <option value="2">中级权限</option>
                      <option value="3">低级权限</option>
                    </select>
                </td>
              </tr>
                <?php endif; ?>
              <?php endforeach; ?>
            </tbody>
          </table>
          <button type="submit" class="layui-btn">保存</button>
        </form>
      </li>
      <li>
        <form class="layui-form" action="/index.php/Admin/admin/authority.html" method="post">
          <table class="layui-table" lay-skin="line">
            <colgroup>
            </colgroup>
            <thead>
              <tr>
                <th>用户名</th>
                
                <th>修改权限</th>
              </tr>
            </thead>
            <tbody>
              <?php foreach($data2 as $k=>$v): ?>
              <tr>
                <td><?php echo $v['username']; ?></td>
               
                <td>
                  <select name="<?php echo ($v['id']); ?>" lay-verify="">
                      <option value="">请选择一个权限</option>
                      <option value="1">高级权限</option>
                      <option selected  value="2">中级权限</option>
                      <option value="3">低级权限</option>
                    </select>
                </td>
              </tr>
              <?php endforeach; ?>
            </tbody>
          </table>
          <button type="submit" class="layui-btn">保存</button>
        </form>
      </li>
      <li>
        <form class="layui-form" action="/index.php/Admin/admin/authority.html" method="post">
          <table class="layui-table" lay-skin="line">
            <colgroup>
            </colgroup>
            <thead>
              <tr>
                <th>用户名</th>
               
                <th>修改权限</th>
              </tr>
            </thead>
            <tbody>
              <?php foreach($data3 as $k=>$v): ?>
              <tr>
                <td><?php echo $v['username']; ?></td>
                
                <td>
                  <select name="<?php echo ($v['id']); ?>" lay-verify="">
                      <option value="">请选择一个权限</option>
                      <option value="1">高级权限</option>
                      <option value="2">中级权限</option>
                      <option selected  value="3">低级权限</option>
                    </select>
                </td>
              </tr>
            <?php endforeach; ?>
            </tbody>
          </table>
          <div id="demo6"></div>
          <button type="submit" class="layui-btn">保存</button>

        </form>
      </li>
    </ul>
  </div>
    </div>
</section>
<script type="text/javascript" src="/public/common/layui/layui.js"></script>
<script type="text/javascript" src="/public/admin/js/jquery.min.js"></script>

<script>
  $(".tab li").click(function(){
    $(".content li").eq($(".tab li").index(this)).addClass("on").siblings().removeClass('on');
  })
  layui.use(['form','laypage','layer'],function(){
    var form = layui.form();
    var laypage = layui.laypage,layer = layui.layer;
    laypage({
      cont: 'demo6'
      ,pages: 5
      ,groups: 0
      ,first: false
      ,last: false
      ,jump: function(obj, first){
        if(!first){
          layer.msg('第 '+ obj.curr +' 页');
        }
      }
    });
 });
</script>

					</div>
				</div>
			</div>
		</div>
		<div id="larry-side">

		</div>

		<!-- 底部区域 -->
		<div class="layui-footer layui-larry-foot" id="larry-footer">
			<div class="layui-mian">
				<p class="font-content">
						南京晨荣设备环保公司
				</p>
			</div>
		</div>
	</div>
	<!-- 加载js文件-->
	<script type="text/javascript" src="/public/common/layui/layui.js"></script>
	<script type="text/javascript" src="/public/admin/js/larry.js"></script>
	<script type="text/javascript" src="/public/admin/js/index.js"></script>
</body>

</html>